package com.nbsaas.sample.topic.rest.convert;

import com.nbsaas.sample.entity.topic.Topic;
import com.nbsaas.sample.topic.api.domain.simple.TopicSimple;

import com.nbsaas.boot.rest.api.Converter;
/**
* 列表对象转换器
*/

public class TopicSimpleConvert implements Converter<TopicSimple, Topic> {




    @Override
    public TopicSimple convert(Topic source) {
        TopicSimple result = new TopicSimple();

                    result.setSalePrice(source.getSalePrice());
                    result.setAddress(source.getAddress());
                    result.setViewNum(source.getViewNum());
                    result.setLat(source.getLat());
                    result.setTitle(source.getTitle());
                    result.setQrCode(source.getQrCode());
                    result.setJoinNum(source.getJoinNum());
                    result.setId(source.getId());
                    result.setAddDate(source.getAddDate());
                    result.setEndDate(source.getEndDate());
                    result.setBeginDate(source.getBeginDate());
                    result.setLastDate(source.getLastDate());
                    result.setMoney(source.getMoney());
                    result.setContent(source.getContent());
                    result.setSex(source.getSex());
                    result.setLng(source.getLng());
                    result.setNote(source.getNote());
                    result.setAmount(source.getAmount());


    return result;
  }

}